package com.pearl.generator.pojo.mapstruct;

import com.pearl.generator.pojo.entity.*;
import com.pearl.generator.pojo.request.*;
import org.mapstruct.Mapper;


/**
 * @author TangDan
 * @version 1.0
 * @since 2022/8/4
 */
@Mapper(componentModel = "spring")
public interface ConfigMapStructMapper {

    GeneratorGlobalConfig globalConfigRequest2GeneratorGlobalConfig(GlobalConfigRequest saveGlobalConfigRequest);

    GeneratorPackageConfig packageConfigRequest2GeneratorPackageConfig(PackageConfigRequest packageConfigRequest);

    GeneratorStrategyConfig strategyConfigRequest2GeneratorStrategyConfig(StrategyConfigRequest strategyConfigRequest);

    GeneratorControllerConfig controllerConfigRequest2GeneratorControllerConfig(ControllerConfigRequest controllerConfigRequest);

    GeneratorServiceConfig serviceConfigRequest2GeneratorServiceConfig(ServiceConfigRequest serviceConfigRequest);
    GeneratorEntityConfig configRequest2EntityConfig(EntityConfigRequest configRequest);

    GeneratorMapperConfig configRequest2MapperConfig(MapperConfigRequest configRequest);
}
